#! /bin/sh

# This script may be used to launch every process
# of *LAM* MPI job in debug mode. May result in MANY
# debug windows.
#
# This script is designed to work with LAM MPI only.
# Usage: 
#    instead of running "mpirun -np xx my_job"
#    run the following: "mpirun -np xx lamdebug my_job"
# Notes: this script was created based on info
#    from http://www.lam-mpi.org/faq/category6.php3
#    Consult that page if you have some problems debugging!

# use this line to launch debug using clewn
xterm -T "Debugging process $LAMRANK of $LAMWORLD ..." -e clewn -ga \""$*"\"

# use this line to launch debug using pure gdb
#xterm -T "Debugging process $LAMRANK of $LAMWORLD ..." -e gdb "$*"
